package com.levi.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.PipedReader;
import java.io.PrintStream;

/**
 * @author shentong
 * @since 2022/4/4 6:13 PM
 */
@Data
@TableName("mall_shipping")
@ApiModel("收货地址实体类")
public class Shipping extends BaseEntity{

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    @ApiModelProperty("用户id")
    private Integer userId;

    @TableField("receiver_name")
    @ApiModelProperty("收货人姓名")
    private String receiverName;


    @TableField("receiver_phone")
    @ApiModelProperty("收货人座机")
    private String receiverPhone;

    @TableField("receiver_mobile")
    @ApiModelProperty("收货人移动电话")
    private String receiverMobile;

    @TableField("receiver_province")
    @ApiModelProperty("省")
    private String receiverProvince;

    @TableField("receiver_city")
    @ApiModelProperty("市")
    private String receiverCity;

    @TableField("receiver_district")
    @ApiModelProperty("区/县")
    private String receiverDistrict;

    @TableField("receiver_address")
    @ApiModelProperty("详细收货地址")
    private String receiverAddress;

    @TableField("receiver_zip")
    @ApiModelProperty("邮编")
    private String receiverZip;

}
